package com.sb;

import javax.servlet.http.HttpServletRequest;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import com.sb.config.EnvConfig;

import lombok.extern.slf4j.Slf4j;

@SpringBootApplication
@Slf4j
public class NettySrringbootApplication {

	@Autowired
	private EnvConfig envCofig;
	
	public static void main(String[] args) {
		SpringApplication.run(NettySrringbootApplication.class, args);
	}

	
    @RestController
    public static class WelcomeController {
    	@RequestMapping({"/","index"})
        public String index(HttpServletRequest request) {
    		log.info("----WelcomeController---index=={}");
            return "未知访问地址";
        }
    }
}

